package com.alfayun.fiscalriskanalysis.systemlogs;

import java.math.BigDecimal;
import java.time.Instant;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "system_logs")
public class SystemLogs {
	
	@Column(name = "system_logs_id", updatable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Id
	private Integer id;
	public Integer userId;
	@Enumerated(EnumType.STRING)
	public Type type;
	public Instant createTime;
	public String description;
	public BigDecimal amount;
	public BigDecimal accountBalance;
	@Enumerated(EnumType.STRING)
	public Status status;

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

}
